<template>
  <div>
    <Tabs value="name1">
      <TabPane label="统计模块" name="name1">
        <div class="content">
          <header>
            <span>时间筛选：</span>
            <DatePicker v-model="queryData.start" type="date" placeholder="开始时间" style="width: 200px"></DatePicker>
            ——
            <DatePicker v-model="queryData.end" type="date" placeholder="结束时间" style="width: 200px"></DatePicker>
            <br>
            <div style="margin-top:10px">
              <span>工号查询：</span>
            <Input v-model="queryData.account" placeholder="请输入工号名称" style="width: 200px"/>
            <span style="margin-left:10px">姓名查询：</span>
            <Input v-model="queryData.name" placeholder="请输入工号名称" style="width: 200px"/>
            <Button type="primary" @click="queryList" class="query" style="margin-left:10px">查询</Button>
            <Button @click="reset" class="reset" style="margin-left:10px">重置</Button>
            <Button type="primary" size="large" @click="exportData" style="float:right">
              <Icon type="ios-download-outline"></Icon>
              下载数据
            </Button>
            </div>
          </header>
          <div style="margin-top:10px">
            <Table :columns="columns10" :data="data9" size="large" ref="table">
            <template slot="health" slot-scope="scope">
              <Button @click="healthModal = true" type="success">查看详情</Button>
            </template>
          </Table>
          </div>
          <div style="margin: 10px;overflow: hidden">
            <div style="float: right;">
              <Page :total="100" :current="queryData.currentPage" @on-change="changePage" @on-page-size-change="changeSize"
                    show-elevator show-sizer></Page>
            </div>
          </div>
        </div>
      </TabPane>
      <TabPane label="总览模块" name="name2">
        <div class="content">
          <header>
            <span>时间筛选:</span>
            <DatePicker v-model="queryData.start" type="date" placeholder="开始时间" style="width: 200px"></DatePicker>
            ——
            <DatePicker v-model="queryData.end" type="date" placeholder="结束时间" style="width: 200px"></DatePicker>
            <Button type="primary" @click="queryList" class="query">查询</Button>
            <Button @click="reset" class="reset">重置</Button>
          </header>
          <div class="chart">
            <Card shadow>
              <div id="main" style="height: 600px"></div>
            </Card>
            <Card shadow>
              <div id="main2" style="height: 600px;width: 1200px"></div>
            </Card>
          </div>
        </div>
      </TabPane>
    </Tabs>
  </div>
</template>

<script src="./drive-data.js">

</script>

<style scoped>

</style>
